<template>
    <div class="main">
        <div class="main-card">
            <div class="title">{{item.title||'工字扣'}}</div>
            <div class="img">
                <img :src="item.url">
            </div>
            <div class="desc">
                <div class="desc-title">纽扣用途</div>
                <div class="desc-text">
                    此类产品多用于各类时尚牛仔服装。
                </div>
                <div class="desc-title">纽扣规格</div>
                <div class="desc-text">
                    L是纽扣的计量单位，具体大小请按照MM标尺测量，请勿以显示器的目测大小衡量纽扣尺寸。
                </div>
                <img src="@/assets/detail_2.jpg"/>
            </div>
        </div>
    </div>
</template>

<script>
    export default {
        name: "product",
        data() {
            return {
                item: {}
            }
        },
        created() {
            this.item = this.$route.query.item
        }
    }
</script>

<style scoped lang="scss">
    .main {
        min-width: 1200px;
        width: 80%;
        margin: auto;
    }

    .main-card {
        background: #fff;
        padding: 45px 45px 0 45px;
        overflow: hidden;
    }

    .title {
        font: 30px "Microsoft Yahei";
        height: 53px;
        line-height: 53px;
        overflow: hidden;
        color: #333;
        background: url(../assets/line.gif) no-repeat left bottom;
    }

    .img {
        margin-top: 40px;
        text-align: center;
    }

    .img img {
        line-height: 40px;
        border: 0px;
        width: 934px
    }

    .desc {
        text-align: center;

        &-title {
            font-size: 50px;
            color: rgb(68, 68, 68);
            margin-bottom: 30px;
        }

        &-text {
            color: rgb(98, 98, 98);
            letter-spacing: 5px;
            font-size: 30px;
            margin-bottom: 30px;
        }
    }
</style>